Ext.onReady(function() {

			Ext.QuickTips.init();

			var combo = new Ext.ux.TwinComboBox({
						allowBlank		: false,
						name			: 'optional',// optional.
						store			: new Ext.data.ArrayStore({
									fields	: ['myId', 'displayText'],
									data	: [[1, 'item1'], [2, 'item2']]
								}),
						hiddenName		: 'required', // hiddenName priority higher than name.
						valueField		: 'myId', // if not config the option or is '', the value is displayField.
						displayField	: 'displayText'
					});

			var formPanel = new Ext.form.FormPanel({
						labelWidth	: 55,
						bodyStyle	: 'padding:0px 5px 0',
						frame		: true,
						autoHeight	: true,
						items		: [new Ext.form.FieldSet({
									title		: '基本信息',
									collapsible	: true,
									layout		: 'column',
									autoHeight	: true,
									items		: [{
												columnWidth	: 0.5,
												layout		: 'form',
												items		: [combo]
											}]
								})],
						buttons		: [{
									text	: 'Save',
									handler	: function() {
										alert(Ext.encode(form.getValues(false)));
									}
								}]
					}
			);

			var form = formPanel.getForm();

			new Ext.Viewport({
						layout	: 'fit',
						items	: formPanel
					});

		}
);
